#include"main.hpp"

void adminser()
{
	student stu[MAX];
	FILE *stufile;
	if((stufile = fopen ("stugrd.txt", "rb"))==NULL)
    {
        printf("出现错误，代码：FILEERROR");
    }
    fread(stu,sizeof(struct student),MAX,stufile);
    fclose(stufile);
	int as;
	printf("请输入系统内学生编号：\n");
	scanf("%d",&as);
	if(stu[as].state!=1)
	{
		printf("该学生不存在！\n");
	}
	else
	{
		printgrd(stu[as]);
	}
}
